﻿using System;
using System.Collections.Generic;

namespace School.Entities;

/// <summary>
/// 课程表
/// </summary>
public partial class Courses
{
    /// <summary>
    /// 课程编号
    /// </summary>
    public int Id { get; set; }

    /// <summary>
    /// 课程名称
    /// </summary>
    public string Name { get; set; } = null!;

    /// <summary>
    /// 教师编号
    /// </summary>
    public int TeacherId { get; set; }

    public virtual ICollection<Enrollments> Enrollments { get; set; } = new List<Enrollments>();

    public virtual Teacher Teacher { get; set; } = null!;
}
